package com.xinchao.ck_mips.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.NotNull;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Unique;

/**
 * Created by wq on 2019/5/23.
 * 离线监播数据
 */
@Entity
public class OffLineData {
    @Id(autoincrement = true)
    private Long id;
    @NotNull
    private String reportInfo;
    @Unique
    private long timestamp;

    @Generated(hash = 1698831044)
    public OffLineData(Long id, @NotNull String reportInfo, long timestamp) {
        this.id = id;
        this.reportInfo = reportInfo;
        this.timestamp = timestamp;
    }

    @Generated(hash = 622110950)
    public OffLineData() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getReportInfo() {
        return reportInfo;
    }

    public void setReportInfo(String reportInfo) {
        this.reportInfo = reportInfo;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }
}
